.class Lcom/nemustech/regina/ElementReginaWidget$16;
.super Ljava/lang/Object;
.source "ElementReginaWidget.java"

# interfaces
.implements Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/nemustech/regina/ElementReginaWidget;->morphWidget(Z)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/nemustech/regina/ElementReginaWidget;


# direct methods
.method constructor <init>(Lcom/nemustech/regina/ElementReginaWidget;)V
    .locals 0
    .parameter

    .prologue
    .line 1404
    iput-object p1, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onEffectFinish(Lcom/nemustech/tiffany/world/TFObject;)V
    .locals 9
    .parameter "object"

    .prologue
    const/4 v8, 0x2

    const/4 v7, 0x1

    const/4 v6, 0x0

    const/4 v5, 0x0

    .line 1407
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    invoke-virtual {v1}, Lcom/nemustech/regina/ElementReginaWidget;->getPrefRowNum()I

    move-result v1

    const/4 v2, -0x1

    if-eq v1, v2, :cond_0

    .line 1408
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    invoke-virtual {v2}, Lcom/nemustech/regina/ElementReginaWidget;->getPrefRowNum()I

    move-result v2

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ElementReginaWidget;->saveRowNum(I)V

    .line 1411
    :cond_0
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget-boolean v1, v1, Lcom/nemustech/regina/ElementReginaWidget;->mHasPaging:Z

    if-eqz v1, :cond_1

    .line 1412
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget v2, v2, Lcom/nemustech/regina/ElementReginaWidget;->mCurrPage:I

    invoke-static {v1, v2}, Lcom/nemustech/regina/ElementReginaWidget;->access$1100(Lcom/nemustech/regina/ElementReginaWidget;I)I

    move-result v0

    .line 1413
    .local v0, startItemIndexCurPage:I
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget v2, v2, Lcom/nemustech/regina/ElementReginaWidget;->mTotalItemNum:I

    iget-object v3, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    invoke-virtual {v3}, Lcom/nemustech/regina/ElementReginaWidget;->getRowNum()I

    move-result v3

    iget-object v4, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    invoke-static {v4}, Lcom/nemustech/regina/ElementReginaWidget;->access$1200(Lcom/nemustech/regina/ElementReginaWidget;)Ljava/util/ArrayList;

    move-result-object v4

    invoke-static {v1, v2, v3, v4}, Lcom/nemustech/regina/ElementReginaWidget;->access$1300(Lcom/nemustech/regina/ElementReginaWidget;IILjava/util/List;)V

    .line 1414
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    invoke-static {v2, v0}, Lcom/nemustech/regina/ElementReginaWidget;->access$1400(Lcom/nemustech/regina/ElementReginaWidget;I)I

    move-result v2

    iput v2, v1, Lcom/nemustech/regina/ElementReginaWidget;->mCurrPage:I

    .line 1415
    const-string v1, "ElementReginaWidget"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "************** mCurrPage="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget v3, v3, Lcom/nemustech/regina/ElementReginaWidget;->mCurrPage:I

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ", startItemIndexCurPage="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 1418
    .end local v0           #startItemIndexCurPage:I
    :cond_1
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget-object v1, v1, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v1, v6, v5, v5}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 1419
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget-object v1, v1, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v1, v5}, Lcom/nemustech/tiffany/world/TFPanel;->setEffectFinishListener(Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;)V

    .line 1420
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget-object v1, v1, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget v2, v2, Lcom/nemustech/regina/ElementReginaWidget;->mWidget3DWidth:F

    iget-object v3, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget v3, v3, Lcom/nemustech/regina/ElementReginaWidget;->mCenter3DHeight:F

    invoke-virtual {v1, v2, v3}, Lcom/nemustech/tiffany/world/TFPanel;->setSize(FF)V

    .line 1421
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget-object v1, v1, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v1, v6, v5, v5}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 1422
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget-object v1, v1, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget-object v2, v2, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v2, v6}, Lcom/nemustech/tiffany/world/TFPanel;->getLocation(I)F

    move-result v2

    iget-object v3, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget-object v3, v3, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v3, v7}, Lcom/nemustech/tiffany/world/TFPanel;->getLocation(I)F

    move-result v3

    iget-object v4, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget-object v4, v4, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v4, v8}, Lcom/nemustech/tiffany/world/TFPanel;->getLocation(I)F

    move-result v4

    invoke-virtual {v1, v2, v3, v4}, Lcom/nemustech/tiffany/world/TFPanel;->locate(FFF)V

    .line 1424
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget-object v1, v1, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const/high16 v2, 0x3f80

    const-wide/16 v3, 0x96

    invoke-virtual {v1, v2, v3, v4}, Lcom/nemustech/tiffany/world/TFPanel;->fade(FJ)V

    .line 1425
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget-object v1, v1, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    new-instance v2, Lcom/nemustech/regina/ElementReginaWidget$16$1;

    invoke-direct {v2, p0}, Lcom/nemustech/regina/ElementReginaWidget$16$1;-><init>(Lcom/nemustech/regina/ElementReginaWidget$16;)V

    invoke-virtual {v1, v2}, Lcom/nemustech/tiffany/world/TFPanel;->setEffectFinishListener(Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;)V

    .line 1433
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget-object v1, v1, Lcom/nemustech/regina/ElementReginaWidget;->mBackCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget v2, v2, Lcom/nemustech/regina/ElementReginaWidget;->mWidget3DWidth:F

    iget-object v3, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget v3, v3, Lcom/nemustech/regina/ElementReginaWidget;->mCenter3DHeight:F

    invoke-virtual {v1, v2, v3}, Lcom/nemustech/tiffany/world/TFPanel;->setSize(FF)V

    .line 1434
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget-object v1, v1, Lcom/nemustech/regina/ElementReginaWidget;->mBackCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget-object v2, v2, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v2, v6}, Lcom/nemustech/tiffany/world/TFPanel;->getLocation(I)F

    move-result v2

    iget-object v3, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget-object v3, v3, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v3, v7}, Lcom/nemustech/tiffany/world/TFPanel;->getLocation(I)F

    move-result v3

    iget-object v4, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget-object v4, v4, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v4, v8}, Lcom/nemustech/tiffany/world/TFPanel;->getLocation(I)F

    move-result v4

    invoke-virtual {v1, v2, v3, v4}, Lcom/nemustech/tiffany/world/TFPanel;->locate(FFF)V

    .line 1436
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget-object v1, v1, Lcom/nemustech/regina/ElementReginaWidget;->mBackCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v1, v6, v5, v5}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 1438
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget-object v1, v1, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    check-cast v1, Lcom/nemustech/regina/ReginaLauncher;

    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ReginaLauncher;->updateElementSizeToDatabase(Lcom/nemustech/regina/Element;)V

    .line 1439
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget-object v1, v1, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    check-cast v1, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaLauncher;->getElementLocator()Lcom/nemustech/regina/ElementLocator;

    move-result-object v1

    invoke-virtual {v1}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspace()Lcom/nemustech/regina/RGWorkspace;

    move-result-object v1

    invoke-virtual {v1}, Lcom/nemustech/regina/RGWorkspace;->requestUpdate()V

    .line 1441
    iget-object v1, p0, Lcom/nemustech/regina/ElementReginaWidget$16;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget-object v1, v1, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v1, v5}, Lcom/nemustech/tiffany/world/TFPanel;->setEffectFinishListener(Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;)V

    .line 1442
    return-void
.end method
